<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>Mobloggin &lt;3's You</title>
	<link rel="stylesheet" href="/css/index.css">
	<link rel="stylesheet" href="/css/style.css">
	<link rel="stylesheet" href="/css/jquery.jgrowl.css">
	<link rel="stylesheet" href="/css/lightbox.css" type="text/css" media="screen" />
</head>
<body>

<table width="100%" style="border-collapse:collapse">
<tr>

<td>
<a href="/"><img src="/images/logo_red.jpg" border="0" alt="mobloggin logo" /></a>
</td>

<td style="text-align: right;">

<div style="background: #BFFFFF; padding: 10px; float: right;">
{if $authenticated}
	Logged in as {$identity->username|escape} (<a href="/logout/">logout</a>).<br />
	<a href="/home">My Home</a><br />
	<a href="/manage">Manage My Stuff</a><br />
{else}

<form method="post" action="/login/">
	<input type="hidden" name="redirect" value="{$redirect|escape}" />

	{if $message|strlen > 0}
	<div class="error">

	{section name=i loop=$message}
		{$message[i]}<br />
	{/section}

	</div>
	{/if}

	<div class="row" id="form_username_container">
		<label for="form_username">Username:</label>
		<input type="text" id="form_username" name="username" value="" />
	</div>

	<div class="row" id="form_password_container">
		<label for="form_password">Password:</label>
		<input type="password" id="form_password" name="password" value="" />
	</div>

	<div class="submit">
		<a href="#">Forgot your password?</a>
		<input type="submit" value="Login" class="button" />
	</div>
	
	<div>
	</div>
</form>

{/if}
</div>

</td>
</tr>
</table>
